A5Storage::DataItem Delete Method
Syntax
.Delete as L ()
Returns
- ResultLogical
Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)
Description
Delete the underlying object if it exists. Returns false if an error occurs.
Example
dim CallResult as CallResult
dim Container as A5Storage::DataContainer = null_value()
CallResult = A5Storage::DataContainer::Open(Container, "Provider='Disk';Container='c:\A5Webroot';")
if CallResult.Success
dim Item A5Storage::DataItem = null_value()
if Container.ReferenceItem(Item, "MyObjectName")
if .not. Item.Delete
showvar(Item.CallResult.Text, "Error deleting Item")
end if
end if
end if